home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
listbox
/
txtyle
/
txtyle.bas
< prev
next >
Wrap
BASIC Source File
|
1991-12-05
|
384b
|
12 lines
Sub EnhanceTextBox (Ctl As Control, NewStyle As Long)
Dim Style As Long
'-- Get the current window style.
Style = GetWindowLong(ControlHwnd(Ctl), GWL_STYLE)
'-- Use OR to combine the existing style and the new style options.
Style = Style Or NewStyle
'-- Set our new style.
Style = SetWindowLong(ControlHwnd(Ctl), GWL_STYLE, Style)
End Sub